<%@ page import="JurisPro.modelo.Usuario"%>

<jsp:include page="static/cabecalhoClean.jsp"/>

		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0" bordercolor="#CDCDCD">
			<tr>
				<td width="620" height="39" class="topicos">Editar Cadastro de
				Usu&aacute;rio<br />
				</td>
			</tr>
		</table>
		<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr><td><p>&nbsp;</p></td></tr>
		</table>
		
		<jsp:useBean id="user" type="JurisPro.modelo.Usuario" scope="request" />
		<form method="post" action="/JurisPro/do_it?" target="_top">
		<table align="center" width="80%" border="0" cellpadding="0" cellspacing="0"
			class="tabela">
			<tr>
				<td width="24%">
				<div align="left" class="texto">Login</div>
				</td>
				<td width="70%" height="30" colspan="2" align="left"><label>
				<input name="comando" type="hidden" value="editUser" /> 
				<input name="idUsuario" type="hidden" value="<%=user.getId() %>"/>
				<input title="*Login" name="login" type="text" size="43" value="<%=user.getLogin() %>" /> </label></td>
			</tr>
			<tr>
				<td>
				<div align="left" class="texto">Nome</div>
				</td>
				<td height="30" colspan="2" align="left"><label> 
				<input title="*Nome" name="nome" type="text" size="43" value="<%=user.getNome() %>" /> </label></td>
			</tr>
			<tr>
				<td><div align="left" class="texto">Tipo de Usu&aacute;rio</div> </td>
				<td height="30" colspan="2" align="left" class="texto">
				
					<%if (user.getTipo()==1){ %>
					<label> 
						<input name="tipo" type="text" size="18" readonly="readonly" value="Administrador(a)">
					</label>
					<%}else if(user.getTipo()==2){ %>
					<label> 
						<input name="tipo" type="text" size="18" readonly="readonly" value="Advogado(a)">
					</label>
					<%}else{ %>
					<label> 
						<input name="tipo" type="text" size="18" readonly="readonly" value="Secret&aacute;ria(o)">
					</label>
					<%} %>
					
					
				</select> </label>
				<%if(user.isBloqueado()== true){ %>
				<label> <input name="checkBloq" type="checkbox" id="checkbox" checked="checked" /> Usu&aacute;rio Bloqueado </label>
				<%}if(user.isBloqueado()== false){ %>
				<label> <input name="checkBloq" type="checkbox" id="checkbox"  /> Bloquear Usu&aacute;rio  </label>
				<%} %>
				</td>
				
			</tr>

			<tr>
				<td>
				<div align="left" class="texto">Telefone </div>
				</td>
				<td height="30" align="left" class="texto"><label> <input name="telefone" type="text" size="18" value="<%=user.getTelefone() %>" /> </label>		
				<label> <input name="checkReset" type="checkbox" id="checkbox" /> Redefinir Senha </label>
				</td>
				<td height="30" align="left">&nbsp;</td>
			</tr>		
			
			<tr>
				<td>&nbsp;</td>
				<td><label> <input type="submit" name="button" id="button" value="Enviar" /> </label></td>
				<td>&nbsp;</td>
			</tr>
		</table>
		</form>
		
			
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>

</html>
